import { createApp } from 'vue'
import './assets/styles/index.less'
import 'ant-design-vue/dist/reset.css'
import piniaState from 'pinia-plugin-persistedstate'
import { createPinia } from 'pinia'
import print from 'vue3-print-nb'
import { router } from './routes'
import directives from './directives'
import App from './App.vue'
import globalData from './utils/global'

const pinia = createPinia()
pinia.use(piniaState)
const app = createApp(App)
app.use(directives)
app.use(print)
app.use(pinia).use(router).mount('#app')
app.config.globalProperties = globalData // 将全局数据挂载到 Vue 实例上
